package com.biao.transaction.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.biao.transaction.example.entity.OperateB;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenwenbiao
 * @since 2020-04-23
 */
public interface OperateBService extends IService<OperateB> {

    /**
     * @description: 没有加@Transactional注解，也不抛出异常
     * @author:chenwenbiao
     * @createTime:2020-04-23
     * @version：1.0
     * @param name
     * @return
     **/
    void noTransaction(String name);

    /**
     * @description: 没有加@Transactional注解，抛出异常
     * @author:chenwenbiao
     * @createTime:2020-04-23
     * @version：1.0
     * @param name
     * @return
     **/
    void noTransactionThrowException(String name);

    /**
     * @description: 添加了@Transactional注解，不抛出异常
     * @author:chenwenbiao
     * @createTime:2020-04-23
     * @version：1.0
     * @param name
     * @return
     **/
    void hasTransaction(String name);

    /**
     * @description: 添加了@Transactional注解，抛出异常
     * @author:chenwenbiao
     * @createTime:2020-04-23
     * @version：1.0
     * @param name
     * @return
     **/
    void hasTransactionThrowException(String name);



    /**
     * @description: 添加了@Transactional注解，不抛出异常
     * @author:chenwenbiao
     * @createTime:2020-04-23
     * @version：1.0
     * @param name
     * @return
     **/
    void hasNewTransaction(String name);

    /**
     * @description: 添加了@Transactional注解，抛出异常
     * @author:chenwenbiao
     * @createTime:2020-04-23
     * @version：1.0
     * @param name
     * @return
     **/
    void hasNewTransactionThrowException(String name);
}
